package com.zcxy.edu.service.impl;

import java.util.List;
import com.zcxy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zcxy.edu.mapper.EduAllSmsUserMapper;
import com.zcxy.edu.domain.EduAllSmsUser;
import com.zcxy.edu.service.IEduAllSmsUserService;

/**
 * 发送短信配置用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-02
 */
@Service
public class EduAllSmsUserServiceImpl implements IEduAllSmsUserService 
{
    @Autowired
    private EduAllSmsUserMapper eduAllSmsUserMapper;

    /**
     * 查询发送短信配置用户
     * 
     * @param id 发送短信配置用户主键
     * @return 发送短信配置用户
     */
    @Override
    public EduAllSmsUser selectEduAllSmsUserById(Long id)
    {
        return eduAllSmsUserMapper.selectEduAllSmsUserById(id);
    }

    /**
     * 查询发送短信配置用户列表
     * 
     * @param eduAllSmsUser 发送短信配置用户
     * @return 发送短信配置用户
     */
    @Override
    public List<EduAllSmsUser> selectEduAllSmsUserList(EduAllSmsUser eduAllSmsUser)
    {
        return eduAllSmsUserMapper.selectEduAllSmsUserList(eduAllSmsUser);
    }

    /**
     * 新增发送短信配置用户
     * 
     * @param eduAllSmsUser 发送短信配置用户
     * @return 结果
     */
    @Override
    public int insertEduAllSmsUser(EduAllSmsUser eduAllSmsUser)
    {
        eduAllSmsUser.setCreateTime(DateUtils.getNowDate());
        return eduAllSmsUserMapper.insertEduAllSmsUser(eduAllSmsUser);
    }

    /**
     * 修改发送短信配置用户
     * 
     * @param eduAllSmsUser 发送短信配置用户
     * @return 结果
     */
    @Override
    public int updateEduAllSmsUser(EduAllSmsUser eduAllSmsUser)
    {
        eduAllSmsUser.setUpdateTime(DateUtils.getNowDate());
        return eduAllSmsUserMapper.updateEduAllSmsUser(eduAllSmsUser);
    }

    /**
     * 批量删除发送短信配置用户
     * 
     * @param ids 需要删除的发送短信配置用户主键
     * @return 结果
     */
    @Override
    public int deleteEduAllSmsUserByIds(Long[] ids)
    {
        return eduAllSmsUserMapper.deleteEduAllSmsUserByIds(ids);
    }

    /**
     * 删除发送短信配置用户信息
     * 
     * @param id 发送短信配置用户主键
     * @return 结果
     */
    @Override
    public int deleteEduAllSmsUserById(Long id)
    {
        return eduAllSmsUserMapper.deleteEduAllSmsUserById(id);
    }
}
